import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import echarts from 'echarts'
import { Carousel,CarouselItem} from 'element-ui';
// import BaiduMap from 'vue-baidu-map';
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
Vue.use(ViewUI);
// Vue.use(BaiduMap, {
//       /* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
//       ak: 'TiI34SB6ZOoV5jvN4TkaZWv4S4EMfpXV'
// })
Vue.use(Carousel);
Vue.use(CarouselItem);
import './rem'

Vue.prototype.$echarts = echarts
document.title = '园域'
// 添加响应拦截器
axios.interceptors.response.use(function (response) {
  // 对响应数据做点什么
  if(response.status!=1){
    // Vue.message.warning('登录超时')
    // toLogin(response.data.message)
  }
  return response;
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
